<template>
  <div class="layout">
    <!-- 左侧菜单 -->
    <diagram-sidebar class="layout-sidebar diagram-sidebar" />

    <!-- 内容区域 -->
    <div class="layout-content">
      <router-view />
    </div>
  </div>
</template>

<script>
import DiagramSidebar from './DiagramSidebarMenu.vue'

export default {
  components: { DiagramSidebar },
  data() {
    return {
      properties: {}
    }
  },
  methods: {

  }
}
</script>

<style scoped>
.layout {
  display: flex;
}
.layout-sidebar {
  /* width: 200px; */
}
.layout {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 10px 25px;
  box-sizing: border-box;
}
.diagram-sidebar {
  /* width: calc(100vw * 280 / 1920); */
  width: 280px;
  flex: 0 0 280px;
  height: calc(100vh - 50px);
  border-right: 1px solid #dadce0;
  /* padding: 10px; */

}
.layout-content {
  flex: 1;
  padding: 10px;
  padding-top: 0;
  padding-right: 0;
}

</style>